package com.socialcoco.entity;

import com.baomidou.mybatisplus.annotation.*;

import java.io.Serializable;
import java.util.Date;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.Getter;
import lombok.Setter;

/**
 * <p>
 * 
 * </p>
 *
 * @author 赵志浩
 * @since 2022-03-17 09:16:50
 */
@Data
@TableName("diary")
@ApiModel(value = "Diary对象", description = "")
public class Diary implements Serializable {

    @TableId(value = "id")
    private Integer id;

    @TableField("uid")
    private Integer uid;

    @TableField("header")
    private String header;

    @TableField("textarea")
    private String textarea;

    @TableField("positioning")
    private String positioning;

    @TableField("type")
    private String type;

    @TableField("createTime")
    private Date createTime;

    @TableLogic
    private Integer deleted;
    @Override
    public String toString() {
        return "Diary{" +
                "id=" + id +
                ", uid=" + uid +
                ", header='" + header + '\'' +
                ", textarea='" + textarea + '\'' +
                ", positioning='" + positioning + '\'' +
                ", createTime=" + createTime +
                '}';
    }
}
